home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
UTILITIE
/
UNIX_COH
/
2774A.ZIP
/
TOOLS1.SHZ
/
TOOLS1
/
Makefile
< prev
next >
Wrap
Makefile
|
1991-07-03
|
1KB
|
42 lines
# UID-Stuff
#
# cuserid written by Rick Nickle (fcsys!trystro@think.com)
# other stuff ported (i.e., 'stolen') by same.
#
# Makefile for certain uid-specific functions:
#
#FUNCTIONS:
# (cuserid.c)
# char *cuserid() returns effective login
# (getutent.c)
# struct utmp *getutent() return information
# struct utmp *getutline() about who is currently logged in.
#
#PROGRAMS:
# logname (logname.c) command to print your effective
# login. certain programs seem
# to need this command
#NOTES:
# add the following to /usr/include/stdio.h:
#
# char *cuserid();
#
# add the following two lines to /usr/include/utmp.h:
#
# extern struct utmp *getutent();
# extern struct utmp *getutline();
#
#I would automate this, but it seems easier (and safer) if you do it.
#
#If you wanna feel even more safe, take out the 'ar' lines in the following
#and throw 'em back in after they compile. They will not overwrite anything
#in Coherent 3.1.0 though, because these functions are not included.
#
logname : logname.c
cc -c cuserid.c
cc -c getutent.c
ar rv /lib/libc.a getutent.o cuserid.o
cc logname.c
mv logname /usr/local/bin